package com.gjw.tblog.controller;

import com.gjw.tblog.entity.Test;
import com.gjw.tblog.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 郭经伟
 * @Date 2022/3/16
 **/
@RestController
@RequestMapping("/test")
public class TestController {


    @Autowired
    private TestService testService;


    @GetMapping("list")
    public List<Test> findTestList() {
        return testService.getTestList();
    }
}
